package com.translate.web.param;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IRetrievePassword;
import com.translate.web.param.contract.IRetrievePasswordEmail;

public class RetrievePasswordParamByEmail implements IRetrievePasswordEmail {

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.EMAIL_PATTERN, message = ValidateCondtionAndMessage.EMAIL_PATTERN_MSG)
	private String email;

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.NUMBER, message = ValidateCondtionAndMessage.NUMBER_MSG)
	private String code;
	
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.PASSWORD_LEN, message = ValidateCondtionAndMessage.PASSWORD_LEN_MSG)
	private String pwd;
	
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.PASSWORD_LEN, message = ValidateCondtionAndMessage.PASSWORD_LEN_MSG)
	private String pwdInputAgin;


	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPwdInputAgin() {
		return pwdInputAgin;
	}

	public void setPwdInputAgin(String pwdInputAgin) {
		this.pwdInputAgin = pwdInputAgin;
	}

}
